package com.swyc.osschat.Test.LambdaTest.Bean;

import java.util.List;

import com.swyc.osschat.Test.StreamTest.Bean.SpecialityEnum;

/**
 * 學生对象，用于测试一个转换测试
 * @author zhaol@yunrong.cn
 * @version V2.1
 * @since 2.1.0 2019/8/9 18:13
 */
public class Pupil {
    private String name;
    private Integer age;
    private Integer stature;
    private Long Airs;
    private List<SpecialityEnum> specialityEnums;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getStature() {
        return stature;
    }

    public void setStature(Integer stature) {
        this.stature = stature;
    }

    public List<SpecialityEnum> getSpecialityEnums() {
        return specialityEnums;
    }

    public void setSpecialityEnums(List<SpecialityEnum> specialityEnums) {
        this.specialityEnums = specialityEnums;
    }

    public Long getAirs() {
        return Airs;
    }

    public void setAirs(Long airs) {
        Airs = airs;
    }

    public static Pupil studentConvertPupil(Student s){
        Pupil p = new Pupil();
        p.setAirs(s.getAirs());
        p.setName(s.getName());
        p.setAge(s.getAge());
        p.setStature(s.getStature());
        p.setSpecialityEnums(s.getSpecialityEnums());
        return p;
    }
}
